<template>
  <div>
    <button @click="clickBtn">点击</button>
    {{ text }}
  </div>
</template>

<script setup>
import { ref } from 'vue';

let text = ref(2);
let clickBtn = () => {
  text.value = 3;
}
</script>

<style lang="scss" scoped>
</style>